//
//  MTLoginViewController.h
//  ebook
//
//  Created by 吴超飞 on 16/2/22.
//  Copyright © 2016年 Moton. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol LoginDelegate <NSObject>

-(void)loginSuccess;
-(void)loginCancel;

@end

@interface MTLoginViewController : MTBaseViewController

@property (nonatomic, retain) UIViewController *lastController;
@property (nonatomic, weak) id<LoginDelegate> delegate;

@property (nonatomic, retain) UITextField * usernameField;

@property (nonatomic, retain) UITextField * passwordField;

@property (nonatomic, retain) UIButton *loginButton;

@property (nonatomic, retain) UIButton * registerButton;

@property (nonatomic, copy) NSString *userName;

@property (nonatomic, assign) BOOL isClickSwitchUser;//是否切换用户时的登录

@end
